<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>修改绑定信息</title>
<#include "../commons/page_css.ftl" />
<#include "../commons/page_js.ftl" />

<link rel="stylesheet" type="text/css" href="/css/zTreeStyle/zTreeStyle.css" >
<script type="text/javascript" src="/js/zTreeJs/jquery.ztree.core-3.5.js"></script>

<style type="text/css">
	.ullicss ul{list-style:none;}
    .ullicss li{float:left; width:120px;}
    
    ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4; width:250px; height:260px;overflow-y:scroll;overflow-x:auto;}
    
</style>
    
<script type="text/javascript">

		
		
$().ready(function() {

	var $inputForm = $("#inputForm");
		
	// 表单验证
	$inputForm.validate({
		rules: {
			"realname": "required",
			"email": "email",
			"depart": "required"
		},
		messages: {
			"username": {
				remote: "用户名已存在"
			}
		},
		submitHandler:function(form){
            form.submit();
        }
	});
	

	
});

</script>

</head>

<body>
<!-- start of con_right_main -->
<div class="con_right_main">

	<form id="inputForm" method="post" action="bind">
	<input type="hidden" name="id" value="${(USER.id)!}" />
	
    <!-- start of con_search -->
	<div class="con_search">
	
    	<span class="con_box_BL"></span>
        
        <!-- start of add_list_table -->
        <table class="add_list_table input tabContent">
            <tr>
                <th class="padT20">用户名：</th>
                <td class="padT20">${(USER.username)!}</td>
            </tr>
            <tr>
                <th class="padT20">绑定状态：</th>
                <td class="padT20">
                	<#if USER.isBind??>
                		<input name="isBind" value='1' type='radio'<#if USER.isBind == 1>checked="checked" </#if>>启动
                		<input name="isBind" value='0' type='radio'<#if USER.isBind == 0>checked="checked" </#if>>禁用
                	<#else>
                		<input name="isBind" value='1' type='radio' checked="checked">启动
                		<input name="isBind" value='0' type='radio'>禁用
                	</#if>
                </td>
            </tr>
            <tr>
                <th class="padT20">绑定类型：</th>
                <td class="padT20">
                	<#if USER.bindType??>
                		<input name="bindType" value='1' type='radio'<#if USER.bindType == 1>checked="checked" </#if>>MAC
                		<input name="bindType" value='2' type='radio'<#if USER.bindType == 2>checked="checked" </#if>>IP
                	<#else>
                		<input name="bindType" value='1' type='radio' checked="checked">MAC
                		<input name="bindType" value='2' type='radio'>IP
                	</#if>
                </td>
            </tr>
            <tr>
                <th class="padT20">绑定信息：</th>
                <td class="padT20">
                	<textarea class="c_textarea auto_hint" name="bindContent" cols="" rows="" realValue="输入文本...">${(USER.bindContent)!}</textarea>
                </td>
            </tr>
           
        </table>
        <!-- end of add_list_table -->
        
        <span class="con_box_BR"></span>
    </div>
    <!-- end of con_search -->
    
    <!-- start of main_slide_con -->
    <div class="main_slide_con">
    	<input type="submit" class="btnC" value="确定" />
        <a class="btnD" href="#" onclick="location.href='list'">取消</a>
        
    </div>
    <!-- end of main_slide_con -->
    
    </form>
</div>
<!-- end of con_right_main -->
<div id="menuContent" class="menuContent" style="display:none; position: absolute;">
	<ul id="treeDemo" class="ztree" style="margin-top:0; width:200px;"></ul>
</div>



</body>
</html>